﻿<!--#include file="../../mae/mae.asp"-->
<script language="jscript" runat="server">
Mo.Start(
	"../../mae/Mo", 
	"MO_ERROR_REPORTING", E_ERROR | E_LOG | E_WARNING | E_LOG, 
	"MO_COMPILE_CACHE", false, //测试用，关闭了编译缓存
	"MO_TEMPLATE_ENGINE", "views/view2.js", //选用MAE的模板引擎2
	"MO_DATABASE_DB", {
		"DB_Type" : "ACCESS",
		"DB_Path" : "./Data/GBqcBsFizy.mdb"
	}
);
function getTestData(){
	return [
		{
			name : "anlige", age : 28, score : [89,99]
		},
		{
			name : "lilith", age : 24, score : [86,98]
		}
	]
}
</script>
<%
res.Charset = "utf-8"
Mo.Method = "Home"
Mo.Action = "Index"
Mo.assign "name", "anlige"
Mo.assign "list", JSArray(1,2,3,4,5,6,7).valueOf()
Mo.assign "db", Model__("Public", "id").iwhere("id>?", 3).limit(1,10).query().fetch()
Mo.assign "stus", getTestData()
Mo.display "Index"

'必要的清理
Mo.End()
%>